﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LaunchMeNot.Core;
namespace LaunchMeNot.Core
{
    public static class CoreConfigurationManager
    {
        public static double DefaultLaunchDelay { get; set; }
        public static bool AllowCancelAutoLaunch { get; set; }
        public static bool AutoLaunchLog { get; set; }
        public static string AutoLaunchLogPath { get; set; }

        public static void Configure(ICoreConfiguration config)
        {
            DefaultLaunchDelay = config.DefaultLaunchDelay;
            AllowCancelAutoLaunch = config.AllowCancelAutoLaunch;
            AutoLaunchLog = config.AutoLaunchLog;
            AutoLaunchLogPath = config.AutoLaunchLogPath;
        }
    }
    public interface ICoreConfiguration
    {
        bool AllowCancelAutoLaunch { get; set; }
        bool AutoLaunchLog { get; set; }
        string AutoLaunchLogPath { get; set; }
        double DefaultLaunchDelay { get; set; }
    }
}
